package com.wonderful.mall.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.config.annotation.web.http.EnableSpringHttpSession;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 远程调用其他服务
 *      引入openfeign
 *      编写一个接口，告诉springCloud这个接口需要调用远程服务
 *      开启远程调用功能@EnableFeignClients
 */
@EnableFeignClients(basePackages = "com.wonderful.mall.member.feign")
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.wonderful.mall.member.dao")
@EnableRedisHttpSession
public class MallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallMemberApplication.class, args);
    }

}
